import React from 'react';
import Home from '../views/home/index.jsx'
import Mine from '../views/mine'
// import {BrowserRouter as Router,Switch,Route,Link} from 'react-router-dom'

import {HashRouter as Router,Route,Link} from 'react-router-dom'

function App(){
    return(
        <div className='app'>
            <Router>
                 <ul>
                     <li>
                         <Link to="/home">Home</Link>
                     </li>
                     <li>
                           <Link to="/Mine">Mine</Link>
                     </li>
                 </ul>
                <Route path='/home' component={Home}></Route>
                <Route path='/Mine' component={Mine}></Route>
            </Router>
        </div>
    )
}

export default App;